/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Main;

import javax.swing.JFrame;

/**
 *
 * @author Daniel
 */
public class Main {
    
    /**
     *
     * @param args
     */
    public static void main(String[] args){
        
        JFrame window = new JFrame();
        window.setSize(800, 600);
        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        window.setVisible(true);
        
        DTrem trem = new DTrem();
        window.add(trem);
        
        TremConect tc = new TremConect(trem);
        Controller c = new Controller(trem,tc);
        tc.setC(c);
        Thread t = new Thread(tc);
        t.start();
        c.setVisible(true);
        
        
    }
}
